import React, { FC,ChangeEvent,useState } from 'react'

const InputForm: FC = ()=>{
    // 输入框文字
    const [text,setText] = useState('')
    function handleChange
    function handleSubmit(event: ChangeEvent<HTMLFormElement>){

    }
    return (
        <>
            <form onSubmit={handleSubmit}>
                <label htmlFor="new-todo">what needs to be done</label>
                <br />
                <input id="new-todo" onChange={handleChange} value={text} />
                <button type="submit">Add #{list.length}</button>
            </form>
        </>
    )
}

export default InputForm
